<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Chapter extends ORM
{
    protected $_db = 'default';
    
    public function rules()
    {
        return array(
            'name' => array(
                array('not_empty'),                
            ),
            'href' => array(
                array('not_empty'),
            ),
        );
    }
    
    public function filters()
    {
        return array(
            'name' => array(
                array('trim'),
            ),
            'href' => array(
                array('trim'),
            )
        );
    }
    

}
